<?php /* Smarty version Smarty-3.1.18, created on 2015-07-08 14:52:39
         compiled from "D:\WWW\yf_qiaqia\Admin\View\Ad\content.html" */ ?>
<?php /*%%SmartyHeaderCode:24062559cc8b7ed6412-23766381%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c48d6f77f17d5c12cbfee1dbc1fa52a06ab9fa3e' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Admin\\View\\Ad\\content.html',
      1 => 1436338001,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '24062559cc8b7ed6412-23766381',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'ad' => 0,
    'bid' => 0,
    'id' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_559cc8b808e056_03206325',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_559cc8b808e056_03206325')) {function content_559cc8b808e056_03206325($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
	</head>
	<body>
	<div class="am-g">
		 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<div class="am-tabs am-margin" data-am-tabs="{ noSwipe: 1}">
    <ul class="am-tabs-nav am-nav am-nav-tabs">
      <li class="am-active"><a hidefocus="true" href="#tab1">中文详情</a></li>
       <?php if ($_smarty_tpl->tpl_vars['_C']->value['DIGLOSSIA']==1) {?>
       <li><a hidefocus="true" href="#tab4">英文详情</a></li>
       <?php }?>
      <li class=""><a hidefocus="true" href="#tab2">其他选项</a></li>
</ul>

    <form class="am-tabs-bd am-form hy-js-form" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
      
      <div class="am-tab-panel am-fade am-active am-in" id="tab1">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              标题
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="title" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['title'];?>
" class="am-input-sm">
            </div>
          </div>

          

          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              描述
            </div>
            <div class="am-u-sm-4 am-u-end">
               <textarea rows="3" name="description" placeholder=""><?php echo $_smarty_tpl->tpl_vars['ad']->value['description'];?>
</textarea>
            </div>
          </div>

          
      </div>
      <div class="am-tab-panel am-fade" id="tab4">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              英文标题
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="en_title" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['en_title'];?>
" class="am-input-sm">
            </div>
          </div>
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              英文描述
            </div>
            <div class="am-u-sm-4 am-u-end">
               <textarea rows="3" name="en_description" placeholder=""><?php echo $_smarty_tpl->tpl_vars['ad']->value['en_description'];?>
</textarea>
            </div>
          </div>

      </div>
      <div class="am-tab-panel am-fade " id="tab2">
        
        
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
             链接
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input name="url" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['url'];?>
" type="text" class="am-input-sm">
            </div>
            
          </div>
 <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              上传图片
            </div>
            <div class="am-u-sm-4">
              <input type="text" name="pic_path" class="am-input-sm" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['pic_path'];?>
">
             
            </div>
            <div class="am-u-sm-1">
            	 <img id="hy-thumb" style="height: 30px;" <?php if ($_smarty_tpl->tpl_vars['ad']->value['pic_path']) {?>src="<?php echo $_smarty_tpl->tpl_vars['ad']->value['pic_path'];?>
"<?php } else { ?> src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
images/logo2.png" <?php }?>>
            	</div>
             <div class="am-u-sm-4 am-u-end">
             	<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg" >上传</button>
          </div>
             </div>

        
      </div>
       <input type="hidden" name="block_id" value="<?php echo $_smarty_tpl->tpl_vars['bid']->value;?>
" />
 		<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
    </form>
    <div class="am-margin">
    <button type="button" class="am-btn am-btn-primary hy-js-submit am-btn-xs">提交保存</button>
    
  </div>
  </div>
	</div>	
	 
	  <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/editor/kindeditor.js"></script>
	<script type="text/javascript">
	    hy_uploadimg('/ad',{},function(result){
	    	if(typeof(result[0])!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',result[0]);
	        	$('input[name=pic_path]').val(result[0]).focus();
	       }
	    })
	    
	    hy_submit('index.php?g=admin&m=ad&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
	</script>
	</body>
</html>
<?php }} ?>
